/* $Id: ProcessStepAttachmentDAOImpl.java 
 * Copyright (C) 2011, TRAKHEES
 *  
 * Revision History
 *
 * Date  			Author 		    	Remarks
 * ---------------------------------------------------------------------------------
 *
 */
package ae.pcfc.etks.online.common.facade.provider;

import org.springframework.transaction.annotation.Transactional;

import ae.pcfc.etks.online.common.domain.ProcStepAthmnt;
import ae.pcfc.etks.online.common.domain.manager.ProcessDomainObjectManager;
import ae.pcfc.etks.online.common.facade.ProcessStepAttachmentFacade;
import ae.pcfc.etks.online.common.vo.UploadDocumentVO;

public class ProcessStepAttachmentDAOImpl extends BaseFacade implements ProcessStepAttachmentFacade {
	
	private ProcessDomainObjectManager processDomainObjectManager;
	
	
	/**
	 * setProcessDomainObjectManager
	 * 
	 * @param processDomainObjectManager
	 * void
	 */
	public void setProcessDomainObjectManager(ProcessDomainObjectManager processDomainObjectManager) {
		this.processDomainObjectManager = processDomainObjectManager;
	}


	/**
	 * findProcessStepAttachmentByPrimaryKey
	 * 
	 * @see ae.pcfc.etks.online.common.facade.ProcessStepAttachmentFacade#findProcessStepAttachmentByPrimaryKey(java.lang.Long)
	 * 
	 */
	@Transactional(readOnly = true)
	public UploadDocumentVO findProcessStepAttachmentByPrimaryKey(Long id) {
			
		ProcStepAthmnt procStepAthmnt = this.processDomainObjectManager.findProcessStepAttachmentByPrimaryKey(id);
		UploadDocumentVO uploadDocumentVO = new UploadDocumentVO();
		getMapper().map(procStepAthmnt, uploadDocumentVO);		
		return uploadDocumentVO;
	}
}
